package cc.fs.study.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 * 用来计算字符长度及显示
 * Created by fostion on 6/4/16.
 */
public class AutoTextView extends TextView {

    public AutoTextView(Context context) {
        this(context,null);
    }

    public AutoTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    private void init() {
        setMaxWidth(15);
    }


}
